<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@taglib uri="/struts-tags" prefix="s" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>Light2</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
    <table>
    	<caption>User List</caption>
    	<tr><th>ID</th><th>User Name</th><th>Age</th><th>phone</th>
    	<th>address</th><th>Reg Time</th><th>Deal</th></tr>
    	<s:iterator value="users" var="u">
    		<tr>
    		<td><s:property value="#u.id"/></td>
    		<td><s:property value="#u.username"/></td>
    		<td><s:property value="#u.age"/></td>
    		<td><s:property value="#u.phone"/></td>
    		<td><s:property value="#u.addr"/></td>
    		<td><s:property value="#u.rdate"/></td>
    		<td><a href="admin/user_delete?id=<s:property value="#u.id"/>">Delete</a></td>
    		</tr>    		
    	</s:iterator>
    </table>
  </body>
</html>
